/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import dbconnector.Conexion_DB;
import forms.CertificacionForm;
import forms.ClienteForm;
import forms.DiametroNominalForm;
import forms.LaboratoristaForm;
import forms.MallaForm;
import forms.MaquinaForm;
import java.sql.ResultSet;

/**
 *
 * @author user
 */
public class Configuracion extends javax.swing.JFrame {

    //passed from main GUI
    Principal window = null;
    CertificacionForm certificacion;
    ClienteForm cliente;    
    DiametroNominalForm diametroNominal;
    LaboratoristaForm laboratoristas;
    MallaForm malla;
    MaquinaForm maquina;
    Conexion_DB db = new Conexion_DB();
    ResultSet rs = null;

    public Configuracion(Principal window) {
        this.window = window;
        initComponents();

        certificacion = new CertificacionForm();
        jTabbedPane1.addTab("Certificación", certificacion);
        cliente = new ClienteForm();
        jTabbedPane1.addTab("Cliente", cliente);        
        diametroNominal = new DiametroNominalForm();
        jTabbedPane1.addTab("Diametro Nominal", diametroNominal);
        laboratoristas = new LaboratoristaForm();
        jTabbedPane1.addTab("Laboratorista", laboratoristas);
        malla = new MallaForm(); 
        jTabbedPane1.addTab("Referencia Malla", malla);
        maquina = new MaquinaForm();
        jTabbedPane1.addTab("Máquina", maquina);

        pack();
        setLocationRelativeTo(null);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setResizable(false);

        jTabbedPane1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 385, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jMenu1.setText("Archivo");

        jMenuItem1.setText("Salir");
        jMenu1.add(jMenuItem1);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
